/**
 * @ClassName Demo07
 * @Description break
 * @Author Li
 * @Date 2022/7/31 9:51
 * @ModifyDate 2022/7/31 9:51
 * @Version 1.0
 */
public class Demo07 {
    public static void main(String[] args) {
        for (int i = 1; i <= 10; i++) {
            // 需求：打印三次后结束循环
            if (i == 4) {
                break;
            }
            System.out.println("Hello World!" + i);
        }
    }
}
